-- GENERATED SPELL FOR [Strashaz Siren] --


function spell0_4371(pUnit, Event) --@Dominate Mind,n/a--
pUnit:FullCastSpellOnTarget(7645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4371', 12000, 1)
end

function spell1_4371(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(15587,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4371', 1500, 1)
end

function spell2_4371(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(15654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4371', 18000, 1)
end

function Sorts_4371(pUnit, Event)
local choix_sorts_4371 = math.random(0, 2)
if choix_sorts_4371 == 0 then
pUnit:RegisterEvent('spell0_4371', 1, 1)
end
if choix_sorts_4371 == 1 then
pUnit:RegisterEvent('spell1_4371', 1, 1)
end
if choix_sorts_4371 == 2 then
pUnit:RegisterEvent('spell2_4371', 1, 1)
end
end

function mob4371_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4371', math.random(1500, 3000), 1)
end

function mob4371_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4371_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4371_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4371, 1, 'mob4371_Action')
RegisterUnitEvent(4371, 2, 'mob4371_Leave')
RegisterUnitEvent(4371, 3, 'mob4371_Kill')
RegisterUnitEvent(4371, 4, 'mob4371_Die')
